<?php
namespace app\admin\model;

use think\model\concern\SoftDelete;

class Role extends Base
{
    protected $title='角色';
    protected $power='role';

    public function users(){
        return $this->hasMany(User::class);
    }

    public function permissions()
    {
        return $this->belongsToMany(Permission::class,'role_permission');
    }
}